home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / win / ch09 / 09fig06.wrl < prev    next >
Text File  |  1996-09-23  |  745b  |  36 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.         Group {
  8.             children [
  9.                 DEF Shape1 Transform {
  10.                     children Shape {
  11.                         appearance DEF White Appearance {
  12.                             material Material { }
  13.                         }
  14.                         geometry Box { }
  15.                     }
  16.                 },
  17.                 DEF Shape1Sensor SphereSensor { }
  18.             ]
  19.         },
  20.         Group {
  21.             children [
  22.                 DEF Shape2 Transform {
  23.                     translation 2.5 0.0 0.0
  24.                     children Shape {
  25.                         appearance USE White
  26.                         geometry Cone { }
  27.                     }
  28.                 },
  29.                 DEF Shape2Sensor SphereSensor { }
  30.             ]
  31.         }
  32.     ]
  33. }
  34. ROUTE Shape1Sensor.rotation_changed TO Shape1.set_rotation
  35. ROUTE Shape2Sensor.rotation_changed TO Shape2.set_rotation
  36.